package com.foruo.demo.sharding.dao;

import com.foruo.demo.sharding.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface UserDao {

    Long addUser(User user);

    List<User> list();

    User findById(Long id);

    User findByName(String name);

}
